import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import api from './api' // 导入api接口
Vue.prototype.$api = api; // 将api挂载到vue的原型上
// import "lib-flexible/flexible";
//plugins
import { Pagination, } from "element-ui"; // element-ui
Vue.use(Pagination,);
import "element-ui/lib/theme-chalk/index.css"; // element-ui



Vue.config.productionTip = false
import '@/assets/css/reset.css'
import '@/assets/css/demo.css'

// import Toast from "vue-toastification";
// import "vue-toastification/dist/index.css";
// let pcToastConfig = {//Default,info,success,error,warning
//   position: 'top-right',
//   transition: 'Vue-Toastification__bounce',
//   draggable: true,
//   draggablePercent: 0.7,
//   timeout: 3000,
//   hideProgressBar: false,
//   icon: true,
// }
// Vue.use(Toast, pcToastConfig);

import "element-ui/lib/theme-chalk/index.css"; // element-ui
import { Message, Upload } from "element-ui"; // element-ui
Message.install = function (Vue, options) {
  Vue.prototype.$message = Message;
};
Vue.use(Message);
Vue.use(Upload);
import { Toast } from "vant";
Vue.use(Toast);
import "vant/lib/index.css";
import { isCode } from "@/utils"
Vue.prototype.$isCode = isCode
//全局指令
import Directives from './directives/'
Vue.use(Directives)

// let vConsole = new Vconsole();
// Vue.use(vConsole);

//全局组件
import myComponents from "./components/pc/"
Vue.use(myComponents)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
